﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ManageFiles.ascx.cs" Inherits="NLLSite.Administrator.ManageFiles" %>
<%@ Register Assembly="CKFinder" Namespace="CKFinder" TagPrefix="CKFinder" %>
<script type="text/javascript">

    // This is a sample function which is called when a file is selected in CKFinder.
    function ShowFileInfo(fileUrl, data) {
        var msg = 'The selected URL is: ' + fileUrl + '\n\n';
        // Display additional information available in the "data" object.
        // For example, the size of a file (in KB) is available in the data["fileSize"] variable.
        if (fileUrl != data['fileUrl'])
            msg += 'File url: ' + data['fileUrl'] + '\n';
        msg += 'File size: ' + data['fileSize'] + 'KB\n';
        msg += 'Last modified: ' + data['fileDate'];

        alert(msg);
       
    }

	</script>
    <div class="box box-100">
    <div class="boxin">
        <div class="header">
            <h3>
                Quản lý Files</h3>
        </div>
        <div style="padding: 18px;">
            <!--<form class="basic" action="" method="post" enctype="multipart/form-data"><!-- Default basic forms -->
            <div class="inner-form">
    <p style="padding-left: 30px; padding-right: 30px;">
		<CKFinder:FileBrowser ID="FileBrowser1" BasePath="../../ckfinder" SelectFunction="ShowFileInfo" Height="600" runat="server"></CKFinder:FileBrowser>
	</p>
    </div>
        </div>
    </div>
</div>
